<script type="text/ng-template" id="template-admin-detail.html">
    
    <h4>
      <a class="btn btn-default btn-sm" href="#/admin/all" title="返回管理员列表"><i class="fa fa-angle-left"></i> 返回</a>
       管理员 <span style="color: #5CB85C; font-weight: bold;">{{admin.username}}</span> 详细信息
    </h4>

    <div class="container-fluid">
        <div class="row">
            <div class="col-xs-12 col-sm-2">
                <i class="fa fa-user" style="font-size: 100px;"></i>
            </div>
            <div class="col-xs-12 col-sm-8">
                <p>用户名：{{admin.username}}</p>
            </div>
            <div class="col-xs-12 col-sm-2">
                <button class="btn btn-danger" ng-click="deleteAdmin()"><i class="fa fa-minus"></i> 删除此账号</button>
            </div>
        </div>
    </div>

    

      <div class="panel-heading">
        <h3 class="panel-title">权限设置</h3>
      </div>
      <div class="panel-body">
        <div class="container-fluid">
            <div class="row">
                <div class="col-xs-12 col-sm-6 col-md-4">
                    <form class="form-horizontal">
                        <div class="form-group">
                            <select class="form-control" ng-model="admin.typecode" ng-change="onChange()">
                                <option ng-repeat="auth in authorities" value="{{auth.typecode}}">
                                    {{ auth.name }}
                                </option>
                            </select>
                        </div>
                    </form>
                </div>
            </div>
        </div>
      </div>


      <div class="panel-heading">
        <h3 class="panel-title">用户登录日志</h3>
      </div>
      <div class="panel-body">
            <table class="table table-striped table-bordered">
                <thead>
                    <tr>
                        <th>登录IP</th>
                        <th>登入时间</th>
                        <th>登出时间</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="item in signInLogs">
                        <td>{{ item.cell.ip }}</td>
                        <td>{{ item.cell.loginTime }}</td>
                        <td>{{ item.cell.logoutTime }}</td>
                    </tr>
                </tbody>
            </table>
            <h3>待完成</h3>
      </div>

    </div>
</script>